.TH txt2grid 1  "January 29, 2016" "version 1.0.002" "USER COMMANDS"
.SH NAME
txt2grid \- convert text files to clm grid data files for LPJ
.SH SYNOPSIS
.B txt2grid
[\-h] [-fmt s] [-skip n] [-cellsize size] [-float]
.I txtfile gridfile
.SH DESCRIPTION
Program converts text files into LPJ grid data files
By default text files have to be in the following format:

.nf
Id,Lon,Lat,X_CRU,Y_CRU
1,-179.75,-16.25,1,148
2,..
.ni
.SH OPTIONS
.TP
\-h
display a short help text
.TP
\-fmt s
input format string for the scanf function in 
.B txt2grid
, default is "%*d,%f,%f,%*d,%*d"
.TP
\-skip n
skip first n lines in text file, default is one
.TP
\-cellsize size
set cell size, default is 0.5
.TP
\-float
float lon, lat values written to clm file, default is short
.TP
.I textfile    
filename of text file to convert
.TP
.I gridfile     
filename of clm grid data file written
.SH EXAMPLES
.TP
Create clm grid data file:
.B txt2grid
grid.txt grid.clm
.PP
.SH EXIT STATUS
.B txt2grid
returns a zero exist status if the clm file is created.
Non zero is returned in case of failure.

.SH AUTHORS

For authors and contributors see AUTHORS file

.SH COPYRIGHT

(C) Potsdam Institute for Climate Impact Research (PIK), see COPYRIGHT file

.SH SEE ALSO
lpjml(1), txt2clm(1), cru2clm(1), grid2clm(1), catclm(1), clm(5)
